﻿@model INTREPWEB.Models.EmbarqueViewModel
@{
    if (IsAjax)
    {
        Layout = null;
        <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")"></script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/intrep-datetime.js")"></script>
    }
}
@Html.ValidationSummary(true)
<fieldset >
    <legend>Detalhes</legend>
    <div class="editor-label">
        @Html.LabelFor(model => model.NavioId)
    </div>
    <div id="Navio">
    <div id="NavioParcial">
    @Html.Action("Navio", "Parcial", new { id = Model.Id })
    </div>
@*    <div class="editor-field">
        @Html.DropDownListFor(x => x.NavioId, Model.Navios as SelectList)
        @Ajax.ActionLink("+", "Criar", "Navio", new AjaxOptions { OnBegin = "criaModal('criarnavio')", UpdateTargetId = "criarnavio", OnSuccess = "$.modalPopup('criarnavio', 'Navio')" })
        @Html.ValidationMessageFor(model => model.NavioId)
    </div>*@
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.DataInicio)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.DataInicio)
        @Html.ValidationMessageFor(model => model.DataInicio)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.HoraInicio)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.HoraInicio)
        @Html.ValidationMessageFor(model => model.HoraInicio)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.DataFim)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.DataFim)
        @Html.ValidationMessageFor(model => model.DataFim)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.HoraFim)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.HoraFim)
        @Html.ValidationMessageFor(model => model.HoraFim)
    </div>
</fieldset>